040 math
您好,在本视频中,我们将了解大都会的说明以及我们所拥有的基本内容。
Hello, in this video, we are going to the Met instructions and basically what we have.
加法和减法和乘法和除法,让我们开始吧,我会在这里添加。
Addition and subtraction and multiplication and division, and let's start, I will add here.
巴赫函数。
Function Bachs.
让我们从广告开始,就是这样,并且。
And let's start with the ad, this is it, and.
子。
Sub.
我的意思是,在这里我们可以说莫。
I mean, here we can say Mo.
和。
And.
这将是分裂。
This will be division.
好的,我们需要什么。
OK, and what we need.
我们需要操作数二来进行加法和减法。
We need operands two for the addition, for the subtraction.
好的,让我们添加,例如,五个。
OK, let's add, for example, five.
但在我们需要在这里再选择一项之前,您会自动看到问题正弦,我们可以说,好吧,我将添加两个整数,或者我将完全添加到实数,或者我可以我想添加无符号整数或短整数等
But before we need to select one more thing in here, you will see automatically and the question sine we can say, OK, I will add two integer or I will add to real value altogether, or I can I want to add unsigned integer or short integer and etc.
我们可以计算实数的加法。
We can work for the addition for real numbers.
好的,例如,五点五。
OK, for example, five point five.
在这里,我们可以说,例如,四点七到这里,M w,例如,零。
In here, and we can say, for example, four point seven to here and M w, for example, zero.
但参数的数据类型与形参的数据类型不匹配,所以我们可以把零填上。
But this data type were of the parameter does not match the data type of the formal parameters so we can put the zero.
好的,然后对于减法,我们可以减去整数值,例如 10 和 4。
OK, and then for subtraction, we can subtract integer values, 10 and four, for example.
现在,估计我们可以使用的例如零。
Now, estimate, for example, zero we can use.
然后我们继续进行乘法。
And then let's continue for multiplication.
好的,我们可以测试一次实数乘法,例如五点八和两点二的和。
OK, real multiplication that we can test once, for example, five point eight and two point two and.
还有两个。
And the two.
好的,下一个分区,例如 25。
OK, and the next division, for example, 25.
除以五。
Divided by five.
这将是整数,这里是 W,例如 to。
This will be integer and here will be W, for example, to.
这是第一个。
And this is the first.
对于未满足的指令以及您所拥有的,例如,接下来我们将使用的东西,例如,绝对或最小或最大或限制,嗯,在这里,例如,我们可以使用。
For unmet instructions and what you have, for example, the next thing we will use, for example, absolute or minimum or maximum or limit, um, in here, for example, we can use.
在这一行限制指令,例如,我们可以测试一次,嗯,我们可以使用或不可以使用的绝对或最大或最小。
Limit instruction in this line, and for example, we can we can test once, um, absolute or maximum or minimum that we can use or not.
我们也可以学习什么是重要的。
We can we can learn what is important also.
好的。
OK.
并坚持限制,我们将为程序内部的超级数据设置限制。
And adhere limit, we will put our limits for the super inside of the program, for the data.
我们将限制我的最低限额为五个,好吗?
We will put a limit on my minimum limit is going to be five, OK?
我的最大限制是 25,我们的输入是 N.W.
And my maximum limit is going to be 25 and our input is going to be N.W.
为了。
for.
这将是 W 六。
And it is going to be W six.
然后让我们继续我们的模式。
And then let's continue our mode.
我们将把这个卷除以输入二,其余的都将被除以输入,除法结果将被写入以供收听。
We will divide this volume is going to be divided to input to by input two and the rest of all, the division result will be written to hear.
好的,但不是除法结果。
OK, but not division result.
例如,十除以四,剩余的体积将是二。
For example, ten divided by four and the rest of the volume is going to be two.
我们将从这里读两篇。
And we will read two from here.
让我们测试一下十和四,但也许不测试三也可以。
Let's test ones ten and four, but maybe not for three can be OK.
还有W八。
And W eight.
让我们启动模拟器,看看这个满足指令是如何工作的,它们工作正常吗?
And let us start our simulator and let's see how this met instructions are working, are they working correctly?
而我们的选择和选择是否正确。
And our choices and selections are correct or not.
现在,我们的 CPA 正在尝试启动,该项目将被编译并尝试进行下载。
Now, our CPA is trying to start and this project is going to be compiled and trying to do a download.
我们需要再等一下。
We need to wait a little bit more.
另外,我们将使用最大或最小数字,例如,对于大都会队,但我认为这些对于未来的项目来说并不重要,嗯,对于您的项目,因为如果您与价值进行比较,那么它是最大还是最小?根据输入的最小值,您可以按照完成说明进行操作。
Also, we will use a maximum or minimum numbers, for example, for the Mets, but I think these are not really important for the future projects, um, for your projects, because if you are comparing to value, is is it maximum or minimum according to to input, you can do it with the completion instructions.
另外,呃,也许我们可以看一下这个视频中的负面或绝对指令。
Also, uh, maybe we can take a look once to negative or absolute instruction in this video.
那么会发生什么呢?
Then what will happen?
我们将给我们一个负值,或者我们将取数字的绝对值。
We will make a value to negative values to us or we will take an absolute value of the, um, numbers.
但这并不重要。
But it doesn't matter.
暂时来说,我们需要知道加法、减法、乘法和除法。
Just for a moment, we need to know the addition, subtraction, multiplication and division.
这四个是非常非常基本和重要的。
These four is really, really basic and important.
好的,现在呃,CPA开始了,我们测试一次。
OK, now, uh, the CPA started and let's test once.
并且监控已打开,现在我正在等待确定,五点五加四点七等于十点二。
And monitoring is on, and now I am waiting to OK, five point five plus four point seven is equal to ten point two.
这是对的。
This is correct.
加法工作正常,减法时间减四等于六。
The addition is working correctly and subtraction time minus four equals to six.
它工作正常并且乘法。
It's working correctly and multiplication.
这是十一点二乘以零点二。
This is ten eleven point two multiplication by zero point two.
也许我可以给你看这个计算器。
Maybe I can show you this calculator.
嗯。
Um.
好的,五点七八分。
OK, five point seven eight.
抱歉,乘以两个点即可。
Sorry, multiply by two point to.
再说一次,五点现在不允许抱歉,五点八乘以二点二。
Again, five point now it is not allowing sorry, five point eight multiply by two point two.
好的,这是正确的,除二十五乘以五,结果是五。
OK, it's correct and division twenty five multiply by five and the result is five.
这是对的。
This is correct.
现在让我们进行限制。
And let's go to limit now.
可以看到这个值是一万四百一十。
You can see this value is ten thousand four hundred ten.
好吧,现在没关系,我将表观修改为零,但事实并非如此。
OK, it doesn't matter now I will modify apparent to zero but it is not.
修改apparent为0,不是m w w uh,这里m w 是六。
Modify apparent to zero, it is not making it m w w uh, m w is six is here.
我用过吗。
Did I used.
我正在寻找和寻找。
I'm looking and searching.
这是正确工作的,也许我们需要更改这些值。
This is correctly working, maybe we need to we need to change these values.
好的,所以,嗯,我会的。
OK, so, um, I will.
删掉这个吧
Delete this one.
和这里。
And here.
隔离 m w。
Isolate m w.
例如,25。
For example, 25.
和。
And.
在这里,也许我们可以。
Here, maybe we can at.
还有30。
And 30.
某些内容已损坏或某些内容正在影响我们的 MMW 六个数据寄存器或。
Something is corrupted or something is affecting our MMW six data registers or.
现在你可以看到这个体积为零。
So now you can see this volume is zero.
所以这是低于最小值的。
So this is the lower than minimum.
所以最低工资就转移到了产出上。
So the minimum wage is transferred to output.
例如,如果此卷高于最大数量,您现在可以检查二十六个。
If this volume is higher than the maximum number, for example, you can check now twenty six.
所以它高于最大值。
So it is higher than maximum.
如果该值介于两个最大最小值之间,则最大数字将传输到输出。
The maximum number is transferred to output if this value is between two maximum minimum numbers.
好的。
OK.
再次将您的值修改为 23。
And again, modify your to, for example, like 23.
所以这个输入值将转移到输出。
So this input value is going to transfer to output.
所以这是最小和最大数量的限制。
So this is the limit for the minimum and maximum numbers.
例如,如果您的解锁值低于五,那么如果您的解锁值大于二十五点二十五,那么五将被传输到输出。
If your unlock value is lower than, for example, five than five will be transferred to output if you're unlock value, for example, is bigger than twenty five point twenty five.
价值将被转移到输出。
Value is going to be, uh, transferred to output.
而你看到的众数可以乘以三、三倍。
And the mode you can see can multiply by three, three times.
我们将输入输入到 1 的内部,但是除法结果和所有 1 的其余值都是,呃,进位值。
We have input to inside of one, but then the division result and the rest of all one value is, uh, carry value.
这就是我们的模式指令结果。
And this is our mode instructions result.
好的,这些是有关以及其他重要事项的说明。
OK, so these are the instructions for the and other important things.
也许我们可以呃,测试想听听就好。
Maybe we can uh, test wants to hear like.
绝对的毁灭。
Absolute destruction.
好吧,对于绝对的指示,我们能做什么呢?
OK, for the absolute instructions, what can we do?
我们需要输入,也需要输出。
We need input and we need output.
所以我们把这里减五,好吗?
So let's put here minus five, OK?
绝对值必须是整数。
An absolute must be integer.
好的,输出,例如,m w I'm 35。
OK, and the output, for example, m w I'm 35.
好的,还有桑迪。
OK, and Sandy.
一致的城镇,对吗?
Consistent townland, correct?
好的,所以减五现在是加五,好的,在绝对绝对指令之后。
OK, so minus five is now plus five, OK, after absolute, absolute instructions.
如果我们将这些值设为绝对值,呃,使用绝对绝对指令,我们能做什么?
And if we take these values absolute, uh, instruction with the absolute, absolute instruction, what can we do?
负值将会,呃,变成正值。
Negative values is going to be to, uh, turn to positive values.
好的,如果这个值要加五,输出也将加五。
OK, if this value is going to be plus five, output will be also plus five.
我们所做的只是将消极价值观转变为积极价值观。
What we are doing just we are turning negative values to the positive values.
这些价值观不会改变。
And these values is not going to change.
绝不。
Never.
我从来没有得到过绝对的指导,只是这样而已。
I never with the absolute instruction, just this is amet.
这是数学指令。
This is a math instruction.
我们所做的一切都是从消极到积极,仅此而已。
What we are doing negative to positive, that's all.
所以,呃,想象一下你的,呃,机器参数有时会减少或减少很多。
So, uh, imagine your, uh, machine parameters are going to minus sometimes or decreasing a lot.
因此,在那一刻它可能会影响您的机器,也许电机会突然向后转动,因此您可以始终使用绝对指令或关于指令将您的值设置为正值。
So that moment it can be affect your machine, maybe motor can turn the backward suddenly so you can put your values to positive always with the absolute instruction or about instructions.
我已经完成这个视频了。
I'm finished for this video.
下一个视频见。
See you in the next video.